﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entities;

namespace Vegetable
{
    public class DivisionPrinter
    {
        public void Print(Division division)
        {
            //Вывод на экран
            List<AbstractVegetables> vegetables = division.Vegetables;

            foreach (AbstractVegetables vegetable in vegetables)
            {
                Console.WriteLine("Name: " + vegetable.Name);
                Console.WriteLine("Calorificvalue: " + vegetable.Calorificvalue);
                Console.WriteLine("Price: " + vegetable.Price);
                Console.WriteLine();
            }
        }
    }
}

